package com.cmit.paas.demo.web;

import com.cmit.paas.demo.web.model.ModelMap;
import com.cmit.paas.demo.web.model.ModelMapConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@SpringBootApplication
public class DemoWebApplication {


    public static void main(String[] args) {
        SpringApplication.run(DemoWebApplication.class, args);
    }

    @Bean
    @ConfigurationProperties(prefix = "models-map")
    public ModelMapConfiguration modelMapConfiguration(){
        ModelMapConfiguration modelMapConfiguration = new ModelMapConfiguration();
        return modelMapConfiguration;
    }
}
